using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MEmail : GeneratedMessageLite<MEmail, MEmail.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MEmail, MEmail.Builder>
		{
			private bool resultIsReadOnly;
			private MEmail result;
			protected override MEmail.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MEmail MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MEmail DefaultInstanceForType
			{
				get
				{
					return MEmail.DefaultInstance;
				}
			}
			public string V
			{
				get
				{
					return this.result.V;
				}
				set
				{
					this.SetV(value);
				}
			}
			public Builder()
			{
				this.result = MEmail.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MEmail cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MEmail PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MEmail other = this.result;
					this.result = new MEmail();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MEmail.Builder Clear()
			{
				this.result = MEmail.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MEmail.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MEmail.Builder(this.result);
				}
				return new MEmail.Builder().MergeFrom(this.result);
			}
			public override MEmail BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MEmail.Builder MergeFrom(IMessageLite other)
			{
				if (other is MEmail)
				{
					return this.MergeFrom((MEmail)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MEmail.Builder MergeFrom(MEmail other)
			{
				return this;
			}
			public override MEmail.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MEmail.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MEmail._mEmailFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MEmail._mEmailFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasV = input.ReadString(ref this.result.v_);
					}
				}
				return this;
			}
			public MEmail.Builder SetV(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasV = true;
				this.result.v_ = value;
				return this;
			}
			public MEmail.Builder ClearV()
			{
				this.PrepareBuilder();
				this.result.hasV = false;
				this.result.v_ = "";
				return this;
			}
		}
		public const int VFieldNumber = 1;
		private static readonly MEmail defaultInstance;
		private static readonly string[] _mEmailFieldNames;
		private static readonly uint[] _mEmailFieldTags;
		private bool hasV;
		private string v_ = "";
		private int memoizedSerializedSize = -1;
		public static MEmail DefaultInstance
		{
			get
			{
				return MEmail.defaultInstance;
			}
		}
		public override MEmail DefaultInstanceForType
		{
			get
			{
				return MEmail.DefaultInstance;
			}
		}
		protected override MEmail ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string V
		{
			get
			{
				return this.v_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasV)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.V);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MEmail()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] mEmailFieldNames = MEmail._mEmailFieldNames;
			if (this.hasV)
			{
				output.WriteString(1, mEmailFieldNames[0], this.V);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasV)
			{
				num ^= this.v_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MEmail mEmail = value as MEmail;
			return mEmail != null && (this.hasV == mEmail.hasV && (!this.hasV || this.v_.Equals(mEmail.v_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MEmail, MEmail.Builder>.PrintField("v", this.hasV, this.v_, writer);
		}
		public static MEmail ParseFrom(byte[] data)
		{
			return MEmail.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MEmail MakeReadOnly()
		{
			return this;
		}
		public static MEmail.Builder CreateBuilder()
		{
			return new MEmail.Builder();
		}
		public override MEmail.Builder ToBuilder()
		{
			return MEmail.CreateBuilder(this);
		}
		public override MEmail.Builder CreateBuilderForType()
		{
			return new MEmail.Builder();
		}
		public static MEmail.Builder CreateBuilder(MEmail prototype)
		{
			return new MEmail.Builder(prototype);
		}
		static MEmail()
		{
			MEmail.defaultInstance = new MEmail().MakeReadOnly();
			MEmail._mEmailFieldNames = new string[]
			{
				"v"
			};
			MEmail._mEmailFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.MEmail.Descriptor, null);
		}
	}
}
